import React, { Component } from 'react'
import {
    View,
    Text,
    StyleSheet,
    TextInput,
    Image
} from 'react-native'
export default class index extends Component {
    state = {
        
    }
    componentDidMount(){
        this.getData()
    }

    getData(){
        console.log(111)
    }
    render() {
        return (
                <View style={[styles.container,{paddingTop: 34}]}>
                    <View style={styles.tabView}>
                        <Image style={{width:20,height:20}}
                            source={require('../../images/qipao.png')}/>
                        <TextInput  style={{ width: 100, height: 40, borderColor: 'gray', borderWidth: 1 }}
                             onChangeTtext={() => {this.getData.bind(this)}}
                             placeholder={'最美生活'}
                        />
                    </View>
                </View>
        )
    }
}

const styles = StyleSheet.create({
    container: {
        flex:1
    },
    tabView: {
        display: 'flex',
        justifyContent: 'center',
        alignItems: 'center',
        fontSize: 18,
        padding:10,
    }
})